package jmine.tec.di.type;


/**
 * Nao faz conversao de tipos
 * 
 * @author MarceloT
 */
public final class NoTypeConverter implements TypeConverter<Object> {

    /**
     * 
     */
    private NoTypeConverter() {
    }

    private static final NoTypeConverter INSTANCE = new NoTypeConverter();

    /**
     * {@inheritDoc}
     */
    public Object convert(String value, Class<?> desiredType) throws TypeConvertionException {
        return value;
    }

    /**
     * {@inheritDoc}
     */
    public boolean isTypeCompatible(Class<?> type) {
        return true;
    }

    /**
     * @return {@link TypeConverter}
     */
    public static TypeConverter<?> getInstance() {
        return INSTANCE;
    }

}
